package com.wzcl.app.model.vo;

import com.wzcl.app.dao.model.FileGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@EqualsAndHashCode(callSuper = false)
@Data
public class FileGroupVo extends BaseVo {

    @ApiModelProperty(value = "组名")
    private String name;

    @ApiModelProperty(value = "父Id")
    private Integer parentId;

    private FileGroupVo() {
    }

    public static FileGroupVo create(FileGroup fileGroup) {
        FileGroupVo fileGroupVo = new FileGroupVo();
        BeanUtils.copyProperties(fileGroup,fileGroupVo);
        fileGroupVo.translationValueStr();
        return fileGroupVo;
    }

    @Override
    public void translationValueStr() {

    }

    @Override
    public void processResources() {

    }
}
